package com.fengyi.homefurnish.controller;

import com.fengyi.homefurnish.pojo.ProSeries;
import com.fengyi.homefurnish.service.ProSeriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/proSeries")
public class ProSeriesController {

    @Autowired
    private ProSeriesService proSeriesService;

    @RequestMapping("/getAllList")
    public List<ProSeries> getAllList(){
        return proSeriesService.getAllList();
    }
}
